{% extends "public/base.html" %}
{% load nm %}

{% block breadcrumbs %}{{block.super}} / <a href="{% url 'public_stats' %}">stats</a> / <a href="{% url 'public_stats_latest' %}">latest</a> {% endblock %}

{% block content %}

<h1>Debian New Member - Current status and recent events</h2>

<h2>Queues</h2>

<table>
    <tr>
        <th>Step</th>
        <th>Count</th>
        <th>Held</th>
    </tr>
<tbody>
    <tr>
        <td>Started a process</td>
        <td>{{counts.new}}</td>
        <td>{{counts.new_hold}}</td>
    </tr>
    <tr>
        <td>Waiting for a free AM</td>
        <td>{{counts.new_ok}}</td>
        <td></td>
    </tr>
    <tr>
        <td>Interacting with an AM</td>
        <td>{{counts.am}}</td>
        <td>{{counts.am_hold}}</td>
    </tr>
    <tr>
        <td>AM approved, waiting for FD check</td>
        <td>{{counts.fd}}</td>
        <td>{{counts.fd_hold}}</td>
    </tr>
    <tr>
        <td>FD approved, waiting for DAM check</td>
        <td>{{counts.dam}}</td>
        <td>{{counts.dam_hold}}</td>
    </tr>
    <tr>
        <td>DAM approved, waiting <a href="http://keyring.debian.org/">keyring-maint</a> and <a href="http://dsa.debian.org/">DSA</a></td>
        <td>{{counts.dam_ok}}</td>
        <td></td>
    </tr>
</tbody>
</table>

<h2>Latest events</h2>

<table>
<thead>
    <tr>
        <th>Date</th>
        <th>Name</th>
        <th>Uid</th>
        <th>Event</th>
    </tr>
</thead>
<tbody>
    {% for e in events %}
    <tr>
        <td>{{e.time|date:"Y-m-d"}}</td>
        <td><a href="{{e.person.get_absolute_url}}">{{e.person.fullname}}</a></td>
        <td>
            {% if e.type == "status" %}
            <a href="{{e.person.get_absolute_url}}">{{e.person.uid}}</a>
            {% else %}
            <a href="{{e.log.process.get_absolute_url}}">{{e.person.uid}}</a>
            {% endif %}
        </td>
        <td>
            {% if e.type == "status" %}
            Status changed to {{e.person.status|desc_status}}
            {% else %}
            Progress changed to {{e.log.progress|desc_progress}}
            {% endif %}
        </td>
    </tr>
    {% endfor %}
</tbody>
</table>

{% endblock %}

